package com.lzq.springblog.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "captcha")
@Schema(name = "验证码信息")
public class CaptchaProperties {
    @Schema(name = "宽度")
    private int width;
    @Schema(name = "高度")
    private int height;
    private Session session;
    @Schema(name = "有效时间")
    private long validTime;
    @Data
    public  static class Session{
        private String key;
        private String date;
    }
}